

/**
 * 自定义错误400
 */

class BadRequestError extends Error {
  constructor(message) {
    super(message);
    this.name = "BadRequestError";
    
  }
}
/**
 * 自定义错误401
 */
class UnauthorizedError extends Error {
  constructor(message) {
    super(message);
    this.name = "UnauthorizedError";

  }
}
/**
 * 自定义错误404
 */

class NotFoundError extends Error {
    
  constructor(message) {
    super(message);
    this.name = "NotFoundError";

  }
}



module.exports = {
  BadRequestError,
  UnauthorizedError,
  NotFoundError
}